package com.waylau.spring.cloud.weather.service;


import com.waylau.spring.cloud.weather.vo.City;
import com.waylau.spring.cloud.weather.vo.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("msa-weather-eureka-client-zuul")
public interface DataLient {

    @GetMapping("/city")
    List<City> listCity() throws  Exception;

    @GetMapping("/data/weather/cityId/{cityId}")
    WeatherResponse getBycityId (@PathVariable("cityId") String CityId);



}
